cmake_minimum_required(VERSION 3.10)
project(client_segmentation LANGUAGES CXX)

#设置最小的C++版本
set(CMAKE_CXX_STANDARD 14)
#设定boost库的路径
set(BOOST_ROOT "/usr/local/hslDir/mylib/boost")
find_package(Boost REQUIRED COMPONENTS system)

file(GLOB SOURCES "src/*.cc")
add_executable(client_segmentation client.cc ${SOURCES} )

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
##引入头文件
target_include_directories(client_segmentation PUBLIC ${Boost_INCLUDE_DIRS})
target_link_libraries(client_segmentation PUBLIC ${Boost_LIBRARIES})


#引入json头文件
target_include_directories(client_segmentation PRIVATE /usr/local/include/jsoncpp)
#引入json库
target_link_libraries(client_segmentation PRIVATE /usr/local/lib/libjsoncpp.a)


